home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
prog
/
cfuncs.zip
/
SELECT.DOC
< prev
next >
Wrap
Text File
|
1991-01-03
|
1KB
|
27 lines
/*----------------------------select-------------------------------*/
/*DESCRIPTION: Displays text and allows the user to choose one */
/* of the displayed lines. */
/* */
/*INPUT:
X & Y - coordinates the upper left corner of the first
choice appears at
TotChoices - number of choices
Choices - string of chars, 1 char for each choice & the char
for the chosen choice is returned.
Text - array of pointers to char that point to the text
to be displayed
TextColor, BGcolor - foreground & background text color
BarColor - color of selection bar
BarTextColor - color of text in bar
Abort - 3 & 23- don't accept Esc key
Abort - >7 double space displayed text.
RETURNS: corresponding char in Choices of selection.
Abort = 1 Esc pressed
Abort = 0 Esc not pressed.
USES: strspc, GetCursor, OffCursor, SetCursor
-------------------------------------------------------------------*/
int select(int X, int Y, int TotChoices, char *Choices, char *Text[],
int TextColor, int BGcolor, int BarColor,
int BarTextColor, int *Abort)